﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.master"
    CodeBehind="Edycja_kapeluszy.aspx.cs" Inherits="DEMI_webapp.Edycja_kapeluszy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div style="background: url('Styles/images/EdycjaKapeluszy.png') no-repeat; width: 500px;
        height: 50px; display: block;">
        &nbsp;</div>
    <div>
        <asp:GridView SelectedRowStyle-BackColor="Aquamarine" ID="GridView1" runat="server"
            AutoGenerateColumns="False" DataSourceID="SqlDataSource_Kapelusze" SelectedIndex="1"
            AutoGenerateSelectButton="True" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
            <Columns>
                <asp:BoundField DataField="nazwa" HeaderText="nazwa" SortExpression="nazwa" />
                <asp:BoundField DataField="kolor" HeaderText="kolor" SortExpression="kolor" />
                <asp:BoundField DataField="cena" HeaderText="cena" SortExpression="cena" />
                <asp:BoundField DataField="material" HeaderText="material" SortExpression="material" />
                <asp:BoundField DataField="ilosc" HeaderText="ilosc" SortExpression="ilosc" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource_Kapelusze" runat="server" ConnectionString="<%$ ConnectionStrings:conString %>"
            SelectCommand="SELECT [nazwa], [kolor], [cena], [material], [ilosc] FROM [Kapelusze] ORDER BY [nazwa]">
        </asp:SqlDataSource>
        <br />

        <asp:ImageButton ID="Button_Usun" runat="server" Width="200" Height="50" OnClick="Button_Usun_Click"
                ImageUrl="~/Styles/images/BUTTONusuń.png" />

        <br />
        <asp:Label ID="L_uwaga" runat="server" ForeColor="Red"></asp:Label>
        <br />
        <asp:Panel ID="Panel1" runat="server" Visible="False">
            <asp:Label ID="L_usuwanie" runat="server" Text="Czy na pewno chcesz usunąć?"></asp:Label>
            <br />
            <asp:RadioButtonList ID="RadioButtonList1" runat="server">
                <asp:ListItem>Tak</asp:ListItem>
                <asp:ListItem>Nie</asp:ListItem>
            </asp:RadioButtonList>
            <br />
            <asp:ImageButton ID="Button_Zatwierdz" runat="server" Width="200" Height="50" OnClick="Button_Zatwierdz_Click"
                ImageUrl="~/Styles/images/BUTTONzatwierdź.png" />
        </asp:Panel>
        <br />
        <asp:Label ID="Label1" runat="server" Text="Nowa ilość"></asp:Label>
        &nbsp;
        <asp:TextBox ID="TB_Ilosc" runat="server" Width="40px"></asp:TextBox>
        &nbsp;&nbsp;
        <br />
        &nbsp;
        <br />
        <div style="width: 950px; margin: 0 auto; text-align: center">
            <asp:ImageButton ID="Button_Ilosc" runat="server" Width="200" Height="50" OnClick="Button_Ilosc_Click"
                ImageUrl="~/Styles/images/BUTTONzmieńIlość.png" />
        </div>
    </div>
</asp:Content>
